﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="SistemaCruzAzul.Web.Administrador.WebForm1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .inline
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Italic="True" 
        Font-Overline="True" Font-Size="XX-Large" ForeColor="#0066FF" 
        Text="Getión de Clientes"></asp:Label>
    <br />
        Cédula:&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtBuscar" runat="server" 
        ontextchanged="txtBuscar_TextChanged" style="margin-left: 3px"></asp:TextBox>

        <asp:AutoCompleteExtender ID="txtBuscar_AutoCompleteExtender" 
        runat="server" DelimiterCharacters="" Enabled="True" ServicePath="" 
        TargetControlID="txtBuscar" ServiceMethod="GetInfo">
    </asp:AutoCompleteExtender>
        <br />
        
    
        Nombre:&nbsp;
        
    
        <asp:TextBox ID="txtBuscar0" runat="server" 
        ontextchanged="txtBuscar_TextChanged" Height="22px" 
    style="margin-left: 1px" Width="262px"></asp:TextBox>

        <asp:AutoCompleteExtender ID="txtBuscar0_AutoCompleteExtender" 
        runat="server" DelimiterCharacters="" Enabled="True" ServicePath="" 
        TargetControlID="txtBuscar0" ServiceMethod="GetInfo">
    </asp:AutoCompleteExtender>
        <br />
        Apellidos:
        <asp:TextBox ID="txtBuscar1" runat="server" 
        ontextchanged="txtBuscar_TextChanged" Width="260px"></asp:TextBox>

        <asp:AutoCompleteExtender ID="txtBuscar1_AutoCompleteExtender" 
        runat="server" DelimiterCharacters="" Enabled="True" ServicePath="" 
        TargetControlID="txtBuscar1" ServiceMethod="GetInfo">
    </asp:AutoCompleteExtender>
        <br />
        Pais:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="DropDownList1" runat="server" 
    DataSourceID="EntityDataSource2" DataTextField="PAIS" DataValueField="PAIS">
</asp:DropDownList>
        <br />
        Ciudad:&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="EntityCiudad" 
    DataTextField="ciudad1" DataValueField="ciudad1" style="margin-bottom: 0px">
</asp:DropDownList>
<asp:EntityDataSource ID="EntityCiudad" runat="server" 
    ConnectionString="name=farmaciacruzazulentities" 
    DefaultContainerName="FARMACIACRUZAZULEntities" EnableFlattening="False" 
    EntitySetName="CIUDADs" Select="it.[ciudad1]">
</asp:EntityDataSource>
<asp:EntityDataSource ID="EntityDataSource2" runat="server" 
    ConnectionString="name=farmaciacruzazulentities" 
    DefaultContainerName="FARMACIACRUZAZULEntities" EnableFlattening="False" 
    EntitySetName="PAIS" Select="it.[PAIS]">
</asp:EntityDataSource>
<br />
<asp:Button ID="Button1" runat="server" Text="Guardar" Width="121px" 
        onclick="Button1_Click1" />
    <asp:Label ID="Label1" runat="server"></asp:Label>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    CellPadding="4" DataKeyNames="clienteID" DataSourceID="EntityDataSource1" 
    ForeColor="#333333" GridLines="None">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="clienteID" HeaderText="clienteID" ReadOnly="True" 
            SortExpression="clienteID" />
        <asp:BoundField DataField="cedula" HeaderText="cedula" 
            SortExpression="cedula" />
        <asp:BoundField DataField="nombre" HeaderText="nombre" 
            SortExpression="nombre" />
        <asp:BoundField DataField="apellido" HeaderText="apellido" 
            SortExpression="apellido" />
        <asp:BoundField DataField="pais" HeaderText="pais" SortExpression="pais" />
        <asp:BoundField DataField="ciudad" HeaderText="ciudad" 
            SortExpression="ciudad" />
    </Columns>
    <EditRowStyle BackColor="#2461BF" />
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#EFF3FB" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#F5F7FB" />
    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
    <SortedDescendingCellStyle BackColor="#E9EBEF" />
    <SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" 
    ConnectionString="name=farmaciacruzazulentities" 
    DefaultContainerName="FARMACIACRUZAZULEntities" EnableFlattening="False" 
    EntitySetName="CLIENTES" EntityTypeFilter="CLIENTE">
</asp:EntityDataSource>
    <asp:Panel ID="Panel1" runat="server" BackColor="#FFFFCC" Font-Size="Medium" 
        ForeColor="#666666" Height="74px" Width="182px" BorderStyle="None" 
        ClientIDMode="AutoID" CssClass="inline" HorizontalAlign="Justify">
        &nbsp;Escribe algo en la caja de texto y veras que se rellena</asp:Panel>
    <asp:CollapsiblePanelExtender ID="Panel1_CollapsiblePanelExtender" 
    ExpandControlID="Button1" CollapseControlID="Button1" Collapsed="true"
        runat="server" Enabled="True" TargetControlID="Panel1">
    </asp:CollapsiblePanelExtender>
    <br />
    <br />
    <p>
    </p>
    <p>
    </p>
    </asp:Content>
